package study.springboot.starter.app.support.rest;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
import org.springframework.web.client.RestTemplate;

@Slf4j
@Configuration
public class RestTemplateCfg {

    public RestTemplateCfg(){
        log.info(">>>>>>>>>>init RestTemplateCfg");
    }

    @Bean
    public RestTemplate restTemplate() {
        log.info(">>>>>>>>>>restTemplate");
        return new RestTemplate();
    }
}
